﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace RN.ERP.Entity
{
    public class CACertificate
    {
        [Key]
        public Guid CertID { get; set; }
        public String Base64 { get; set; }
        public String SerialNumber { get; set; }
        public String IssuerDN { get; set; }
        public String SubjectDN { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? ValidFrom { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? ValidTo { get; set; }
        public String Thumbprint { get; set; }
        public String IssuerCN { get; set; }
        public String SubjectCN { get; set; }
        public String KeySerialNumber { get; set; }
        public String CSP { get; set; }
        public Byte? BindType { get; set; }
        public Guid? BindID { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? AddTime { get; set; }
    }
}
